<?php echo $this->Html->script('tinymce/tinymce.min');?>
<div class="col-lg-12">

	<div class="portlet">
    <div class="portlet-title">
        <div class="caption">
            <i class="fa fa-info-circle"></i>Sửa
        </div>
    </div>


	<div class="portlet-body form">
		<?php echo $this->Form->create($als, array('class' => 'form-horizontal form-bordered', 'type' => 'file'));?>
		<?php echo $this->Form->hidden($als.'.id' )?>
		<div class="portlet-body">
			<div class="form-body">
				<div class="form-group">
					<label class="ml15 mt10">Nội dung</label>
					<div class="col-sm-12">
						<?php echo $this->Form->textarea($als.'.content', array( 'label' => false, 'div' => false, 'class' => 'form-control tnmc', 'placeholder' => 'Nhập nội dung miêu tả' ) )?>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-3 control-label">Tập tin</label>
					<div class="col-sm-9">
						<?php if(!empty($this->data[$als]['files'])):?>
						<?php echo $this->Form->hidden($als.'.files_old', array('value' => $this->data[$als]['files']))?>
						<div class="row">
							<div class="col-sm-7 col-md-12">
								<p><strong><?= $this->data[$als]['files'] ?></strong></p>
							</div>
						</div>
						<?php endif;?>

						<div class="row">
							<div class="col-sm-5"><input type="file" class="form-control" name="data[<?= $als ?>][files]"/></div>
						</div>
					</div>
				</div>

			</div>
			<div class="form-actions fluid">
				<div class="col-md-offset-2 col-md-9">
					<button type="submit" class="btn btn-success"><?= __('Lưu') ?></button>
				</div>
			</div>
		</div>
		<?php echo $this->Form->end( ); ?>
	</div><!-- End protet -->

</div>
